import request from './request'

export const getrouteHistoryApi = () => {
  return request({
    url: '/route_history',
    method: 'get',
  })
}


export const addrouteHistoryApi = (data) => {
  return request({
    url: '/route_history',
    method: 'post',
    data:data,
  })
}


export const updaterouteHistoryApi = (id, data) => {
  return request({
    url: `/route_history/${id}`,
    method: 'put',
    data,
  })
}


export const deleterouteHistoryApi = (id) => {
  return request({
    url: `/route_history/${id}`,
    method: 'delete',
  })
}